<%@ page language="java" contentType="text/html; charset=utf8" 	pageEncoding="utf8"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<div class="user">Список пользователей</div>
<br/>
<table cellpadding="0" class="list_user" border="1" bordercolor="#000000" width="500" cellspacing="0" height=420px>
	<tr>
		<td width="60" class="list_user_head">ID</td>
		<td width="240" class="list_user_head">Логин</td>
		<td width="200" class="list_user_head">Действия</td>
	</tr>
	<tr>
		<td colspan="3">
			<div style="height: 380px; width: 100%; overflow-y: scroll; text-align: center">
				<table cellpadding="0" width="100%" cellspacing="0">
					<c:forEach items="${listUser}" var="user">
						<tr>
							<td class="list_admin_left" width="60" >${user.getId()}</td>
							<td class="list_admin_center" > ${user.getLogin()} </td>
							<td width="182" class="list_admin_left">
								<table border="0" width="95%" cellspacing="0" cellpadding="0">
									<tr>
										<td align="right">
											<form method="POST" action="/CoffiSweetDreams/managerusers.htm?action=userlist">
												<input type="text" class="hidenell" readonly name="id" value="${user.getId()}" hidden="true" />
												<input type="image" class="button" src="/CoffiSweetDreams/butttons/edit.png">&nbsp;&nbsp;
											</form>
										</td>
										<td align="left">
											<form method="POST" action="/CoffiSweetDreams/managerusers.htm?action=deluser">
												<input type="text" class="hidenell" readonly name="id" value="${user.getId()}" />	
												<input type="image" class="button" src="/CoffiSweetDreams/butttons/del.png" >
											</form>
										</td>
									</tr>
								</table>	
							</td>
						</tr>
					</c:forEach>
				</table>
			</div>
		</td>
	</tr>
</table>

